home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip Kasım 2000.iso / prog / basic / 09 / AXA2.CAB / DAJAVA.CAB / com / ms / dxmedia / SoundBvr.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-10-14  |  1.9 KB  |  110 lines

  1. package com.ms.dxmedia;
  2.  
  3. import com.ms.com.ComFailException;
  4. import com.ms.dxmedia.rawcom.DASound;
  5. import com.ms.dxmedia.rawcom.IDABehavior;
  6. import com.ms.dxmedia.rawcom.IDASound;
  7.  
  8. public class SoundBvr extends Behavior {
  9.    private IDASound _COMptr;
  10.  
  11.    public void setCOMBvr(IDABehavior var1) {
  12.       super.setCOMBvr(var1);
  13.       this._COMptr = (IDASound)var1;
  14.    }
  15.  
  16.    public SoundBvr rate(NumberBvr var1) {
  17.       try {
  18.          return new SoundBvr(this.getCOMPtr().RateAnim(var1.getCOMPtr()));
  19.       } catch (ComFailException var4) {
  20.          throw StaticsBase.handleError(var4);
  21.       }
  22.    }
  23.  
  24.    public SoundBvr rate(double var1) {
  25.       try {
  26.          return new SoundBvr(this.getCOMPtr().Rate(var1));
  27.       } catch (ComFailException var5) {
  28.          throw StaticsBase.handleError(var5);
  29.       }
  30.    }
  31.  
  32.    public SoundBvr(IDASound var1) {
  33.       super(var1);
  34.       this._COMptr = var1;
  35.    }
  36.  
  37.    public SoundBvr() {
  38.       super((IDABehavior)null);
  39.       this._COMptr = null;
  40.    }
  41.  
  42.    public static SoundBvr newUninitBvr() {
  43.       return new SoundBvr(new DASound());
  44.    }
  45.  
  46.    protected Behavior newUninitBehavior() {
  47.       return newUninitBvr();
  48.    }
  49.  
  50.    public IDASound getCOMPtr() {
  51.       return this._COMptr;
  52.    }
  53.  
  54.    public SoundBvr loop() {
  55.       try {
  56.          return new SoundBvr(this.getCOMPtr().Loop());
  57.       } catch (ComFailException var3) {
  58.          throw StaticsBase.handleError(var3);
  59.       }
  60.    }
  61.  
  62.    public SoundBvr phase(NumberBvr var1) {
  63.       try {
  64.          return new SoundBvr(this.getCOMPtr().PhaseAnim(var1.getCOMPtr()));
  65.       } catch (ComFailException var4) {
  66.          throw StaticsBase.handleError(var4);
  67.       }
  68.    }
  69.  
  70.    public SoundBvr phase(double var1) {
  71.       try {
  72.          return new SoundBvr(this.getCOMPtr().Phase(var1));
  73.       } catch (ComFailException var5) {
  74.          throw StaticsBase.handleError(var5);
  75.       }
  76.    }
  77.  
  78.    public SoundBvr pan(NumberBvr var1) {
  79.       try {
  80.          return new SoundBvr(this.getCOMPtr().PanAnim(var1.getCOMPtr()));
  81.       } catch (ComFailException var4) {
  82.          throw StaticsBase.handleError(var4);
  83.       }
  84.    }
  85.  
  86.    public SoundBvr pan(double var1) {
  87.       try {
  88.          return new SoundBvr(this.getCOMPtr().Pan(var1));
  89.       } catch (ComFailException var5) {
  90.          throw StaticsBase.handleError(var5);
  91.       }
  92.    }
  93.  
  94.    public SoundBvr gain(NumberBvr var1) {
  95.       try {
  96.          return new SoundBvr(this.getCOMPtr().GainAnim(var1.getCOMPtr()));
  97.       } catch (ComFailException var4) {
  98.          throw StaticsBase.handleError(var4);
  99.       }
  100.    }
  101.  
  102.    public SoundBvr gain(double var1) {
  103.       try {
  104.          return new SoundBvr(this.getCOMPtr().Gain(var1));
  105.       } catch (ComFailException var5) {
  106.          throw StaticsBase.handleError(var5);
  107.       }
  108.    }
  109. }
  110.